Cvpn 2673 - #486
Merged
Merged
Conversation
Contributor
Author
|
@kp-weiwen-goh @xv-thomas-leong WIP changes |
|
Code coverage summary for 1672398: ✅ Region coverage 69% passes |
kp-anuz-tomar
force-pushed
the
CVPN-2673
branch
2 times, most recently
from
July 28, 2026 18:22
8fd1d7b to
e809345
Compare
The addr monitor polled a shutdown flag on a 1s WaitForSingleObject timeout, and since a shutdown was returned as an error it also paid a 500ms error-retry backoff before noticing it. Replace the poll with a manual-reset shutdown event, waited on alongside the address-change event via WaitForMultipleObjects, so teardown wakes the wait immediately instead of riding out the 1s timeout. Shutdown now returns a distinct result rather than an error, and the error-retry backoff itself waits on the shutdown event — so a cycle that fails before reaching the wait still exits promptly instead of hanging process shutdown. Signed-off-by: anuz tomar <anuz.tomar@kape.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Improving timing for ctrl+C shutdown on windows by reducing time spent in add_monitor
Motivation and Context
Slow shutdown of windows lightway client
https://polymoon.atlassian.net/browse/CVPN-2673
How Has This Been Tested?
Tested locally and tested by desktop team
Testing still ongoing.
Types of changes
Checklist:
main